package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("zdd_sensitive_vocabulary")
public class SensitiveVocabulary extends Model<SensitiveVocabulary> {
    /**
     * 字典ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 敏感词
     */
    @TableField("sensitive_words")
    private String sensitiveWords;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Date createtime;
    /**
     * 更新时间
     */
    @TableField(update = "now()")
    private Date updatetime;
    /**
     * 父类id
     */
    @TableField("parentid")
    private Integer parentid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
